package com.rrx.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Users {
    private int id;
    private String opendid;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;
    private int state;
    private String address;

    public Users(int id, String opendid, String phone, Date time, int state,String address) {
        this.id = id;
        this.opendid = opendid;
        this.phone = phone;
        this.time = time;
        this.state = state;
        this.address =address;
    }
    public Users() {
    }

    public int getId() {
        return id;
    }

    public String getOpendid() {
        return opendid;
    }

    public String getPhone() {
        return phone;
    }

    public Date getTime() {
        return time;
    }

    public int getState() {
        return state;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setOpendid(String opendid) {
        this.opendid = opendid;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getAddress() { return address; }

    public void setAddress(String address) { this.address = address;}
}
